<?php
namespace Common\Model;
use Think\Model;

class BaseModel extends Model{

	public function getListByMap($condition='',$field='*',$limit='15',$order=''){
		$data = $this->where($condition)->field($field)->limit($limit)->order($order)->select();
		return $data;
	}
	public function getInfoByMap($condition='',$field='*'){
		$data = $this->field($field)->where($condition)->find();
		return $data;
	}
}